import layout from '@/layout/index.vue'
const versionRouter = {
  sort: 3,
  path: '/versionAdmin',
  component: layout,
  redirect: 'index',
  // hidden: true, // 隐藏路由
  meta: {
    title: '版本管理',
    menuId: '12',
    icon: '项目版本管理'
  },
  children: [
    {
      path: '/versionAdmin/software',
      name: 'software',
      component: () => import('@v/software/software.vue'),
      meta: {
        sort: 29,
        title: '软件版本管理',
        menuId: '13',
        icon: '版本'
      }
    },
    {
      path: '/versionAdmin/softwareAndEqu',
      name: 'softwareAndEqu',
      component: () => import('@v/software/softwareAndEqu.vue'),
      meta: {
        sort: 35,
        title: '版本与设备绑定情况',
        menuId: '29',
        icon: '绑定'
      }
    },
    {
      path: '/versionAdmin/softwareBind',
      name: 'softwareBind',
      component: () => import('@v/software/softwareBind.vue'),
      hidden: true, // 隐藏路由
      meta: {
        title: '设备绑定',
        icon: '版本'
      }
    },
    {
      path: '/versionAdmin/softwareUnbind',
      name: 'softwareUnbind',
      component: () => import('@v/software/softwareUnbind.vue'),
      hidden: true, // 隐藏路由
      meta: {
        title: '设备解绑',
        icon: '版本'
      }
    },
    // {
    //   path: '/versionAdmin/updateQuene',
    //   name: 'updateQuene',
    //   hidden: true,
    //   component: () => import('@v/software/updateQuene.vue'),
    //   meta: {
    //     sort: 33,
    //     title: '版本更新队列',
    //     menuId: '15',  // 跟接口返回的id必须保持一致，全项目路由id是唯一的！！！
    //     icon: '团队'
    //   }
    // },
    {
      path: '/versionAdmin/versionLog',
      name: 'versionLog',
      hidden: true,
      component: () => import('@v/software/versionLog.vue'),
      meta: {
        title: '更新日志',
        icon: '团队'
      }
    }
  ]
}
export default versionRouter
